import request from '@/utils/request'

export async function unitViewPageQuery(unitView, paginator) {
  return await request({
    url: '/bicAdmin/unitView/query',
    method: 'post',
    data: {
      'unitView': unitView,
      'paginator': paginator
    }
  })
}

export async function unitViewSave(unitView) {
  return await request({
    url: '/bicAdmin/unitView/save',
    method: 'post',
    data: unitView
  })
}

export async function remoteValidateUnitViewUnique(systemUuid, useCaseUuid) {
  return await request({
    url: '/bicAdmin/unitView/validateUnique/' + systemUuid + '/' + useCaseUuid,
    method: 'get',
  })
}
